package org.jeecg.modules.workservice.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 类名称：WorkServiceVo
 * 类描述：TODO
 * 创建人：zwr
 * 创建时间：2021-08-25   12:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ToString
public class WorkServiceVo {

    /**编号;UUID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号;UUID")
    private String service_id;
    /**工单编号，工单表外键*/
    @Excel(name = "工单编号，工单表外键", width = 15)
    @ApiModelProperty(value = "工单编号，工单表外键")
    private String serviceWorkId;
    /**工单内容*/
    @Excel(name = "工单名称", width = 15)
    @ApiModelProperty(value = "工单名称")
    private String workName;

    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String workCustomer;

    @Excel(name = "联系方式", width = 15)
    @ApiModelProperty(value = "联系方式")
    private String workPhone;

    @Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String workAddress;

    @Excel(name = "工单状态", width = 15)
    @ApiModelProperty(value = "工单状态")
    @Dict(dicCode = "work_distribution")
    private String workDistribution;

    @Excel(name = "紧急程度", width = 15)
    @ApiModelProperty(value = "紧急程度")
    private String workUrgent;

    @Excel(name = "工单开始时间", width = 15)
    @ApiModelProperty(value = "工单开始时间")
    private String workStart;

    @Excel(name = "工单结束时间", width = 15)
    @ApiModelProperty(value = "工单结束时间")
    private String workEnd;

    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    /**损坏设备*/
    @Excel(name = "损坏设备", width = 15)
    @ApiModelProperty(value = "损坏设备")
    private String serviceEquipment;

    @ApiModelProperty(value = "是否电话确认，1，已确认，  2未确认，")
    @Dict(dicCode = "work_phone_confirm")
    private Integer workPhoneConfirm;

    @ApiModelProperty(value = "是否质保期内，1：是 2，不是，")
    @Dict(dicCode = "service_period")
    private Integer servicePeriod;

    @ApiModelProperty(value = "是否收费")
    @Dict(dicCode = "service_charge")
    private Integer serviceCharge;

    @ApiModelProperty(value = "需要的工具")
    private String workTool;

    @ApiModelProperty(value = "是否工具确认")
    @Dict(dicCode = "work_tool_confirm")
    private Integer workToolConfirm;

    @ApiModelProperty(value = "是否需要借车")
    @Dict(dicCode = "work_vehicle")
    private Integer workVehicle;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "工单完成时间")
    private String workComplete;

    @ApiModelProperty(value = "故障现象及问题原因")
    private String serviceProblem;

    @ApiModelProperty(value = "处理办法以及结果")
    private String serviceWay;

    @ApiModelProperty(value = "隐患告知和注意事项")
    private String serviceHidden;

    @ApiModelProperty(value = "工单内容")
    private String serviceContent;

    @ApiModelProperty(value = "合计")
    private Double serviceTotal;
}
